import 'package:flutter/cupertino.dart';
import 'package:rebase_project/res/style.dart';

class CImage extends StatelessWidget {
  final String path;
  final BorderRadius borderRadius;
  final Size size;
  final BoxFit fit;
  final Color color;
  final BlendMode colorBlendMode;
  const CImage(this.path,
      {Key key, this.borderRadius,this.size=Size.zero, this.fit = BoxFit.cover, this.color, this.colorBlendMode})
      : super(key: key);
  @override
  Widget build(BuildContext context) {
    return ClipRRect(
      borderRadius: borderRadius?? rCircular,
      child: Image.network(
        path,
        width: size.width,
        height: size.height,
        fit: BoxFit.cover,
        color: color,
        colorBlendMode:colorBlendMode
      ),
    );
  }
}
